package com.li.utilstest

import android.app.Application
import android.view.Gravity
import androidx.core.content.ContextCompat
import com.blankj.utilcode.util.ToastUtils
import com.blankj.utilcode.util.Utils

/**
 * @author : liyun
 * @ClassName: IApplication
 * @Package com.li.utilstest
 * @Description:
 * @company: 深圳君南信息系统有限公司
 * @date 2021/7/10 14:13
 * @version v1.0
 */
class IApplication:Application() {
    override fun onCreate() {
        super.onCreate()
        initUtils()
    }

    private fun initUtils(){
        Utils.init(this)
        ToastUtils.getDefaultMaker().setGravity(Gravity.CENTER,0,0);
        ToastUtils.getDefaultMaker().setTextColor(ContextCompat.getColor(this,R.color.white));
        ToastUtils.getDefaultMaker().setBgResource(R.drawable.bg_toast);
    }
}